<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .head {
            height: 20px;
            width: 60px;
        }
    </style>

</head>
<body>
<div class="head">
    <input type="text" class="head" name="word" value="llll">
    <input type="text">
    <input type="text">
    <script>
        var el=document.querySelector(".head");
        alert(el);
        var ra= document.querySelector("div.head input[name='word']");
        alert(ra);
    </script>
</div>
</body>
</html>